﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student : Person
    {
        private string major;
        private string grade;

        public Student() { }

        public Student(string major, string grade)
        {
            this.major = major;
            this.grade = grade;
        }

        public void Hello()
        {
            base.Hello();
            Console.WriteLine("专业：{0}，年级：{1}", this.major, this.grade);
        }


        public string Major
        {
            get { return major; }
            set { this.major = value; }
        }
        public string Grade
        {
            get { return grade; }
            set { this.grade = value; }
        }



    }
}
